const express = require('express');
const classify = express.Router();

// 查询所有分类
classify.get('/',require('./class/class'))
//首页展示分类信息
classify.get('/index',require('./class/index'))
// 分页查询分类详情
classify.get('/:page',require('./class/classify'))
// 添加分类
classify.post('/add',require('./class/add'))
// 修改分类名
classify.put('/',require('./class/edit'))
// 删除分类
classify.delete('/:id',require('./class/delete'))

module.exports=classify;
